export default {
  data () {
    return {
      x: 0,
      y: 0
    }
  },
  methods: {
    move(e) {
      console.log(e)
      this.x = e.x
      this.y = e.y
    }
  },
  mounted () {
    document.addEventListener('mousemove',this.move)
  },
  beforeDestroy () {
    document.removeEventListener('mousemove',this.move)

  }
}